﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using VOL.Entity.AttributeManager;
using VOL.Entity.DomainModels;
using VOL.Entity.DomainModels.PatientManage;
using VOL.SmartMecial.IServices.PayInfoManage;

namespace VOL.WebApi.Controllers.SmartMecial
{
    /// <summary>
    /// 缴费信息控制器
    /// 负责处理缴费信息相关的API请求
    /// </summary>
    [Route("api/PayInfoController")]
    [PermissionTable(Name = "PayInfoController")]
    public class PayInfoController : ControllerBase
    {
       private readonly IPayInfoService service;
       
        /// <summary>
        /// 构造函数，通过依赖注入获取缴费信息服务实例
        /// </summary>
        /// <param name="service">缴费信息服务</param>
        public PayInfoController(IPayInfoService service)
        {
            this.service = service;
        }
        /// <summary>
        /// 缴费列表查询
        /// </summary>
        /// <returns></returns>
        [HttpGet("GetPayList")]
        public  List<PayInfo> GetPayList()
        {
            return service.GetPayList();
        }
       
    }
}
